{strip} {foreach $query as $res}
{$res.fullname}{if $this->is_online($res.id)} {/if}
{$this->friendsLastOnline($res.online)}
{foreachelse} NO DATA TO SHOW {/foreach} {/strip}